package com.wy.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wy.model.entity.Role;
import com.wy.model.vo.AssignRoleVo;
import com.wy.model.vo.RoleQueryVo;

import java.util.Map;

public interface RoleService extends IService<Role> {
  //条件分页查询
  IPage<Role> selectPage(Page<Role> pageParam, RoleQueryVo roleQueryVo);
  //获取用户角色数据
  Map<String, Object> getRoleByUserId(Integer userId);
  //用户分配角色
  void doAssign(AssignRoleVo assignRoleVo);
}
